package com.qingfeng.client.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingfeng.base.model.Page;
import com.qingfeng.client.bean.Trade;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
public interface TradeMapper extends BaseMapper<Trade> {
    int updateTradeStatById(@Param("updatedTradeStat")Integer updatedTradeStat,@Param("id")Long id);


    Integer getInTradeMoney(@Param("storeId") Long storeId);

    List<Map<String,Object>> getPageList(Page page, @Param("trade") Trade bean, @Param("storeId") Long storeId);

    List<Map<String, Object>> getDetail(@Param("id") Long ordetStoreId,@Param("storeId") Long storeId);

    void updateTradeStat(@Param("logisticsId") Long logisticsId, @Param("tradeId") Long tradeId,
                         @Param("storeId") Integer storeId,@Param("dealUserId") Long dealUserId,
                         @Param("stat") int stat);

    int updateFreightAndPaymentById(@Param("updatedFreight")Integer updatedFreight,
                                    @Param("updatedPayment")Integer updatedPayment,
                                    @Param("id")Long id);



}
